package com.example.myapplication.placeholder;

import com.example.myapplication.ScanEntry;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Helper class for providing sample content for user interfaces created by
 * Android template wizards.
 * <p>
 * TODO: Replace all uses of this class before publishing your app.
 */
public class PlaceholderContent {

    /**
     * An array of sample (placeholder) items.
     */
    public static final List<ScanEntry> ITEMS = new ArrayList<>();

    /**
     * A map of sample (placeholder) items, by ID.
     */
    public static final Map<String, ScanEntry> ITEM_MAP = new HashMap<>();

    private static final int COUNT = 25;

    private static void addItem(ScanEntry item) {
        ITEMS.add(item);
        ITEM_MAP.put(item.getDaemon().getId(), item);
    }
}